﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BankSimulation
{
    internal class ATM
    {
        public ATM() { }
    }

    internal class BigMoneyEventArgs : EventArgs
    {
        public Account Account { get; }
        public decimal Amount { get; }

        public BigMoneyEventArgs(Account account, decimal amount)
        {
            Account = account;
            Amount = amount;
        }

    }
    internal class BadCashException : Exception
    {
        public BadCashException() : base("坏的钞票")
        {
        }
    }

    // 余额不足异常
    internal class InsufficientFundsException : Exception
    {
        public InsufficientFundsException() : base("余额不足")
        {
        }
    }
}
